﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ATM
{
    public partial class adminPanel : Form
    {
        public adminPanel()
        {
            InitializeComponent();
            adminPass.PasswordChar = '*';
            adminPass.MaxLength = 12;
        }

        private void adminPanel_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void login_Click(object sender, EventArgs e)
        {
            adminLogic al = new adminLogic();

            if (al.login(int.Parse(adminPass.Text)))
            {
                adminMainPanel ampForm = new adminMainPanel();
                this.Hide();
                ampForm.Show();
            }
            else
                MessageBox.Show("Invalid Password!");

        }
    }
}
